package com.ruoyi.liangshi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.liangshi.domain.ArchItem;
import com.ruoyi.liangshi.domain.GdArchItemClass;
import com.ruoyi.liangshi.mapper.AtchItemMapper;
import com.ruoyi.liangshi.mapper.GdArchItemClassMapper;
import com.ruoyi.liangshi.service.IGdArchItemClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜品类型信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
@Service
public class GdArchItemClassServiceImpl  extends ServiceImpl<GdArchItemClassMapper, GdArchItemClass>  implements IGdArchItemClassService
{
    @Autowired
    private GdArchItemClassMapper gdArchItemClassMapper;

    /**
     * 查询菜品类型信息
     * 
     * @param id 菜品类型信息主键
     * @return 菜品类型信息
     */
    @Override
    public GdArchItemClass selectGdArchItemClassById(Long id)
    {
        return gdArchItemClassMapper.selectGdArchItemClassById(id);
    }

    /**
     * 查询菜品类型信息列表
     * 
     * @param gdArchItemClass 菜品类型信息
     * @return 菜品类型信息
     */
    @Override
    public List<GdArchItemClass> selectGdArchItemClassList(GdArchItemClass gdArchItemClass)
    {
        return gdArchItemClassMapper.selectGdArchItemClassList(gdArchItemClass);
    }

    /**
     * 新增菜品类型信息
     * 
     * @param gdArchItemClass 菜品类型信息
     * @return 结果
     */
    @Override
    public int insertGdArchItemClass(GdArchItemClass gdArchItemClass)
    {
        return gdArchItemClassMapper.insertGdArchItemClass(gdArchItemClass);
    }

    /**
     * 修改菜品类型信息
     * 
     * @param gdArchItemClass 菜品类型信息
     * @return 结果
     */
    @Override
    public int updateGdArchItemClass(GdArchItemClass gdArchItemClass)
    {
        return gdArchItemClassMapper.updateGdArchItemClass(gdArchItemClass);
    }

    /**
     * 批量删除菜品类型信息
     * 
     * @param ids 需要删除的菜品类型信息主键
     * @return 结果
     */
    @Override
    public int deleteGdArchItemClassByIds(Long[] ids)
    {
        return gdArchItemClassMapper.deleteGdArchItemClassByIds(ids);
    }

    /**
     * 删除菜品类型信息信息
     * 
     * @param id 菜品类型信息主键
     * @return 结果
     */
    @Override
    public int deleteGdArchItemClassById(Long id)
    {
        return gdArchItemClassMapper.deleteGdArchItemClassById(id);
    }
}
